home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
SaveBufferAs_MPEG.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
54 lines
/*
* SaveBufferAs_MPEG.ifx.pre
* Written by Thomas Krehbiel
*
* Build an MPEG.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_MPEG_'
seqnum = Word(Arg(1),1)
framemax = Word(Arg(1),2)
mfile = GETCLIP(base||'File')
newpath = GETCLIP(base||'Path')
neww = GETCLIP(base||'Width')
newh = GETCLIP(base||'Height')
xing = GETCLIP(base||'Xing')
IF newpath = "" THEN newpath = "RAM:"
IF neww = "" THEN neww = 352
IF newh = "" THEN newh = 256
IF xing = "" THEN xing = 0
Gadget.1 = 'STRING 150 5 160 14 "MPEG File:"' mfile
Gadget.2 = 'INTEGER 150 20 60 14 "Size Width:"' neww
Gadget.3 = 'INTEGER 250 20 60 14 "Ht:"' newh
Gadget.4 = 'STRING 130 35 90 14 "Temp Path:"' newpath
Gadget.5 = 'CHECK 60 50 22 11 "XING Compatible?"' xing
Gadget.6 = 'END'
NewComplexRequest '"Build MPEG Options"' Gadget 340 70
IF rc ~= 0 THEN EXIT rc
neww = ((result.2 + 15) % 16) * 16
newh = ((result.3 + 15) % 16) * 16
CALL SETCLIP(base||'File', result.1)
CALL SETCLIP(base||'Width', neww)
CALL SETCLIP(base||'Height', newh)
CALL SETCLIP(base||'Path', result.4)
CALL SETCLIP(base||'Xing', result.5)
EXIT